From e17887baa3998b62af929fd143e1a8e35266509a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 12 Sep 2008 10:40:19 +0100 Subject: [PATCH] x86, cpu hotplug: flush softirq work when going offline From: Haitao Shan Signed-off-by: Keir Fraser --- xen/arch/x86/domain.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 9f2746910b..31a100f81c 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -86,6 +86,12 @@ static void default_idle(void) static void play_dead(void) { + /* + * Flush pending softirqs if any. They can be queued up before this CPU + * was taken out of cpu_online_map in __cpu_disable(). + */ + do_softirq(); + /* This must be done before dead CPU ack */ cpu_exit_clear(); hvm_cpu_down(); -- 2.30.2